-
Notifications
You must be signed in to change notification settings - Fork 233
Initial support for keys following zipfian #166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This patch allows memtier generate keys that follows zipfian distribution. An additional parameter --key-zipf-exp is introduced, meaning P(Key = n) ~ n^{-exp}, which is bounded to (0, 5) to be sane. The range of keys are limited to positive in this version. Signed-off-by: Su Lifan <[email protected]>
Signed-off-by: Su Lifan <[email protected]>
- tracks and counts command execution using redis-py Monitor class
- Refactor Zipfian tests to avoid repetition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small request for change @paulorsousa . Given your tests clearly explain the --key-zipf-exp implications I believe we should also make sure the user gets it when doing the --help
, meaning please add your extra detail on --key-zipf-exp description.
PS: really cool testing strategy!!! Kudos!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @lfsu-ali and @paulorsousa !
This patch allows memtier generate keys that follows zipfian
distribution. An additional parameter --key-zipf-exp is introduced,
meaning P(Key = n) ~ n^{-exp}, which is bounded to (0, 5) to be sane.
The range of keys are limited to positive in this version.
Signed-off-by: Su Lifan [email protected]